package com.example.demo.config;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.autoconfigure.domain.EntityScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.data.jpa.repository.config.EnableJpaAuditing;
import org.springframework.data.jpa.repository.config.EnableJpaRepositories;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * @ClassName
 * @Description TODO
 * @Author jhipster
 * @Date：2020/1/10
 */
@Configuration
@EnableJpaRepositories("com.example.demo.repository")
@EnableJpaAuditing(auditorAwareRef = "springSecurityAuditorAware")
@EntityScan("com.example.demo.domain")
@EnableTransactionManagement
public class DatabaseConfiguration {

    private final Logger log = LoggerFactory.getLogger(DatabaseConfiguration.class);
}
